package fr.miage.client.presentation.footer;

import com.google.gwt.user.client.ui.AbstractImagePrototype;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.Image;
import com.google.gwt.user.client.ui.ImageBundle;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstant;

/**
 * @author vincent
 * The footer, which contains the 'copyright' message and various links.
 */
public class Footer extends Composite {

  /**
   * An image bundle for this widgets images.
   */
  public interface Images extends ImageBundle {
    AbstractImagePrototype logo();
  }

  public Footer() {
	  
    HorizontalPanel outer = new HorizontalPanel();
    VerticalPanel inner = new VerticalPanel();

    outer.setHorizontalAlignment(HorizontalPanel.ALIGN_CENTER);
    inner.setVerticalAlignment(VerticalPanel.ALIGN_MIDDLE);
    inner.setHorizontalAlignment(HorizontalPanel.ALIGN_CENTER);

    outer.add(inner);
    inner.add(new HTML("© 2008 - 2009 Courses En Ligne<br><br>"));
    inner.add(new HTML("<b>Albiser Vincent<span class='marge'>Delsol Romain</span><span class='marge'>Herté Cédric</span><span class='marge'>Macaj Kristela</span></b>"));
    
    initWidget(outer);
    setStyleName("footer");
  }

}
